package cn.zqy.demo.day06;

public class Person {
    String name;
    private int age;

    public void printP() {
        System.out.println("姓名："+ name + "年龄：" + age);
    }

    public void setAge(int num) {
        age = num;
    }

    public int getAge() {
        return age;
    }
}
